import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '@/views/Homme.vue'
const routes = [
  {
    path: '/', component: Home, name: 'Home', redirect: '/weapons', children: [
      { path: 'weapons', component: () => import('@/views/components/Weapons.vue'), name: 'Home', }
    ]
  }
]

const router = createRouter({
  routes,
  history: createWebHashHistory()
})

export default router